import request from '@/utils/request'

// 查询帮助中心目录树
export function listHelpMenuTree() {
  return request({
    url: '/ec/helpMenu/menuTree',
    method: 'get'
  })
}

// 查询帮助中心目录详细
export function getHelpMenu(id) {
  return request({
    url: '/ec/helpMenu/' + id,
    method: 'get'
  })
}

// 查询置顶的文章
export function helpMenuTop() {
  return request({
    url: '/ec/helpMenu/helpMenuTop',
    method: 'get'
  })
}

// 查询推荐的文章
export function helpMenuRecommend(query) {
  return request({
    url: '/ec/helpMenu/helpMenuRecommend',
    method: 'get',
    params: query
  })
}

// 根据父级id查询子集目录
export function helpMenuChild(query) {
  return request({
    url: '/ec/helpMenu/helpMenuChild',
    method: 'get',
    params: query
  })
}
